﻿<%@ Page Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true"
    CodeFile="PartTimeJobs.aspx.cs" Inherits="PartTimeJobs" %>

<%@ Import Namespace="Avatar.Model" %>
<%@ Import Namespace="Avatar.BLL" %>
<%@ Import Namespace="Avatar.ResumeService" %>
<%@ Import Namespace="Avatar.Company" %>
<%@ Register Src="UserControl/Company/NewResume.ascx" TagName="NewResume" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="images/JobSearch/job_search.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_Main" runat="Server">
    <table style="width: 100%;">
        <tr>
            <td>
                <div class="Dialog">
                    <div class="Title">
                        兼职职位
                    </div>
                    <div class="Content">
                        <asp:ListView ID="ListView1" runat="server">
                            <ItemTemplate>
                                <tr class="trW2 borderBt">
                                    <td align="center" class="left">
                                    </td>
                                    <td id="dvJobTit">
                                        <a href='./job.aspx?id=<%# Eval("ID") %>' target="_blank">
                                            <%# Eval("Title") %></a>
                                    </td>
                                    <td>
                                    </td>
                                    <td id="dvCompNM">
                                        <a href='<%# CompanyInformationManager.GetCompanyInformation(Eval("PublisherUser").ToString())==null?"#":"CompanyJobList.aspx?Company="+CompanyInformationManager.GetCompanyInformation(Eval("PublisherUser").ToString()).CompanyName %>'
                                            target="_blank">
                                            <%# CompanyInformationManager.GetCompanyInformation(Eval("PublisherUser").ToString())==null?"未填":CompanyInformationManager.GetCompanyInformation(Eval("PublisherUser").ToString()).CompanyName %></a>
                                    </td>
                                    <td width="80">
                                        <%# LocationManager.Get(Convert.ToInt32(Eval("LocationID"))).Name %>
                                    </td>
                                    <td width="90">
                                        <%# Convert.ToDateTime(Eval("PublishDate")).ToShortDateString() %>
                                    </td>
                                    <td class="tdJobDetails" title="点击查看职位描述/要求">
                                        <a href='./job.aspx?id=<%# Eval("ID") %>' target="_blank"><span class="showJobDetail">
                                            职位描述</span></a>
                                    </td>
                                </tr>
                            </ItemTemplate>
                            <EmptyDataTemplate>
                                <table width="990" cellspacing="0" border="0" id="joblist" class="maintable0" style="text-align: center;
                                    width: 100%;">
                                    <tbody>
                                        <tr class="listtitle">
                                            <th width="20">
                                            </th>
                                            <th width="360">
                                                职位名称
                                            </th>
                                            <th width="20">
                                            </th>
                                            <th width="300">
                                                公司名称
                                            </th>
                                            <th width="80">
                                                工作地点
                                            </th>
                                            <th width="90">
                                                发布日期
                                            </th>
                                            <th width="80">
                                            </th>
                                        </tr>
                                        <tr>
                                            <td colspan="7" style="color: Red; text-align: center; height: 200px;">
                                                抱歉！没有找到符合条件的招聘信息，请修改查询条件后重试。
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </EmptyDataTemplate>
                            <LayoutTemplate>
                                <table runat="server">
                                    <tr runat="server">
                                        <td runat="server">
                                            <table width="990" cellspacing="0" border="0" id="joblist0" class="maintable0">
                                                <tbody>
                                                    <tr runat="server" class="listtitle">
                                                        <th width="20" runat="server">
                                                        </th>
                                                        <th width="360" runat="server">
                                                            职位名称
                                                        </th>
                                                        <th width="20" runat="server">
                                                        </th>
                                                        <th width="300" runat="server">
                                                            公司名称
                                                        </th>
                                                        <th width="80" runat="server">
                                                            工作地点
                                                        </th>
                                                        <th width="90" runat="server">
                                                            发布日期
                                                        </th>
                                                        <th width="80" runat="server">
                                                        </th>
                                                    </tr>
                                                    <tr id="itemPlaceholder" runat="server">
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </LayoutTemplate>
                        </asp:ListView>
                        <asp:Label ID="lbl_CurrentJob" runat="server" />/
                        <asp:Label ID="lbl_TotalJob" runat="server" />
                        <asp:Button ID="btn_UpJob" runat="server" Text="上一页" 
                            onclick="btn_UpJob_Click" />
                        <asp:Button ID="btn_DownJob" runat="server" Text="下一页" 
                            onclick="btn_DownJob_Click" />
                        <asp:TextBox ID="txt_PageJob" runat="server" Width="30px" />
                        <asp:Button ID="btn_Goto" runat="server" Text="转到" onclick="btn_Goto_Click" />
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="Dialog">
                    <div class="Title">
                        兼职简历
                    </div>
                    <div class="Content">
                        <asp:ListView ID="ListView2" runat="server">
                            <ItemTemplate>
                                <tr class="trW2 borderBt">
                                    <td align="center" class="left">
                                    </td>
                                    <td id="dvJobTit">
                                        <%# ((PersonalBasicInfo)Eval("PersonalBasicInfo")).Name %>
                                    </td>
                                    <td>
                                    </td>
                                    <td id="dvCompNM">
                                        <%# DateTime.Now.Year-((PersonalBasicInfo)Eval("PersonalBasicInfo")).Birthday.Year %>
                                    </td>
                                    <td width="80">
                                        <%# ((PersonalBasicInfo)Eval("PersonalBasicInfo")).WorkingAge.Age %>
                                    </td>
                                    <td width="90">
                                        <%# ((PersonalBasicInfo)Eval("PersonalBasicInfo")).Diploma.Name %>
                                    </td>
                                    <td class="tdJobDetails">
                                        <div style="text-align: center;">
                                            <div id="Div1" visible="<%# _serviceID==1?true:false %>" runat="server">
                                                <a href="#" onclick="{if(confirm('非付费企业服务用户 不能查看求职简历')){return true;}return false;}">查看简历</a></div>
                                            <div id="Div2" visible="<%# _serviceID==2?true:false %>" runat="server">
                                                <a href="./resumeview.aspx?user=<%# Eval("User") %>" target="_blank" onclick="<%# JobConfigManager.GetJobConfig()!=null?"{if(confirm('查看此条信息需付费"+JobConfigManager.GetJobConfig().Price.ToString()+"元')){return true;}return false;}":"alert('系统设置错误，请与客服联系。')" %>">查看简历</a></div>
                                            <div id="Div3" visible="<%# _serviceID==3?true:false %>" runat="server">
                                                <a href='ResumeView.aspx?User=<%#Eval("User") %>' target="_blank">查看简历</a></div>
                                        </div>
                                    </td>
                                </tr>
                            </ItemTemplate>
                            <EmptyDataTemplate>
                                <table width="990" cellspacing="0" border="0" id="joblist" class="maintable0" style="text-align: center;
                                    width: 100%;">
                                    <tbody>
                                        <tr class="listtitle">
                                            <th width="20">
                                            </th>
                                            <th width="300">
                                                姓名
                                            </th>
                                            <th width="20">
                                            </th>
                                            <th width="200">
                                                年龄
                                            </th>
                                            <th width="165">
                                                工作经验
                                            </th>
                                            <th width="165">
                                                学历
                                            </th>
                                            <th width="90">
                                            </th>
                                            <th width="80">
                                            </th>
                                        </tr>
                                        <tr>
                                            <td colspan="7" style="color: Red; text-align: center; height: 200px;">
                                                抱歉！没有找到符合条件的招聘信息，请修改查询条件后重试。
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </EmptyDataTemplate>
                            <LayoutTemplate>
                                <table id="Table1" runat="server">
                                    <tr id="Tr1" runat="server">
                                        <td id="Td1" runat="server">
                                            <table width="990" cellspacing="0" border="0" id="joblist0" class="maintable0">
                                                <tbody>
                                                    <tr id="Tr2" runat="server" class="listtitle">
                                                        <th id="Th1" width="20" runat="server">
                                                        </th>
                                                        <th id="Th2" width="300" runat="server">
                                                            姓名
                                                        </th>
                                                        <th id="Th3" width="20" runat="server">
                                                        </th>
                                                        <th id="Th4" width="200" runat="server">
                                                            年龄
                                                        </th>
                                                        <th id="Th5" width="165" runat="server">
                                                            工作经验
                                                        </th>
                                                        <th id="Th6" width="165" runat="server">
                                                            学历
                                                        </th>
                                                        <th id="Th7" width="80" runat="server">
                                                        </th>
                                                    </tr>
                                                    <tr id="itemPlaceholder" runat="server">
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </LayoutTemplate>
                        </asp:ListView>
                        <asp:Label ID="lbl_CurrentR" runat="server" />/
                        <asp:Label ID="lbl_TotalR" runat="server" />
                        <asp:Button ID="btn_UpR" runat="server" Text="上一页" onclick="btn_UpR_Click" />
                        <asp:Button ID="btn_DownR" runat="server" Text="下一页" 
                            onclick="btn_DownR_Click" />
                        <asp:TextBox ID="txt_PageR" runat="server" Width="30px" />
                        <asp:Button ID="btn_GotoR" runat="server" Text="转到" onclick="btn_GotoR_Click" />

                    </div>
                </div>
            </td>
        </tr>
    </table>
</asp:Content>
